Optimal. Leaf size=55 \[ \frac {3}{8} \text {Ci}\left (b x^2\right ) \sin (a)-\frac {1}{8} \text {Ci}\left (3 b x^2\right ) \sin (3 a)+\frac {3}{8} \cos (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \cos (3 a) \text {Si}\left (3 b x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3484, 3458,
3457, 3456} \begin {gather*} \frac {3}{8} \sin (a) \text {CosIntegral}\left (b x^2\right )-\frac {1}{8} \sin (3 a) \text {CosIntegral}\left (3 b x^2\right )+\frac {3}{8} \cos (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \cos (3 a) \text {Si}\left (3 b x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3456
Rule 3457
Rule 3458
Rule 3484
Rubi steps
\begin {align*} \int \frac {\sin ^3\left (a+b x^2\right )}{x} \, dx &=\int \left (\frac {3 \sin \left (a+b x^2\right )}{4 x}-\frac {\sin \left (3 a+3 b x^2\right )}{4 x}\right ) \, dx\\ &=-\left (\frac {1}{4} \int \frac {\sin \left (3 a+3 b x^2\right )}{x} \, dx\right )+\frac {3}{4} \int \frac {\sin \left (a+b x^2\right )}{x} \, dx\\ &=\frac {1}{4} (3 \cos (a)) \int \frac {\sin \left (b x^2\right )}{x} \, dx-\frac {1}{4} \cos (3 a) \int \frac {\sin \left (3 b x^2\right )}{x} \, dx+\frac {1}{4} (3 \sin (a)) \int \frac {\cos \left (b x^2\right )}{x} \, dx-\frac {1}{4} \sin (3 a) \int \frac {\cos \left (3 b x^2\right )}{x} \, dx\\ &=\frac {3}{8} \text {Ci}\left (b x^2\right ) \sin (a)-\frac {1}{8} \text {Ci}\left (3 b x^2\right ) \sin (3 a)+\frac {3}{8} \cos (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \cos (3 a) \text {Si}\left (3 b x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 51, normalized size = 0.93 \begin {gather*} \frac {1}{8} \left (3 \text {Ci}\left (b x^2\right ) \sin (a)-\text {Ci}\left (3 b x^2\right ) \sin (3 a)+3 \cos (a) \text {Si}\left (b x^2\right )-\cos (3 a) \text {Si}\left (3 b x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.31, size = 125, normalized size = 2.27
method | result | size |
risch | \(-\frac {i {\mathrm e}^{3 i a} \expIntegral \left (1, -3 i x^{2} b \right )}{16}+\frac {\pi \,{\mathrm e}^{-3 i a} \mathrm {csgn}\left (b \,x^{2}\right )}{16}-\frac {{\mathrm e}^{-3 i a} \sinIntegral \left (3 b \,x^{2}\right )}{8}+\frac {i \expIntegral \left (1, -3 i x^{2} b \right ) {\mathrm e}^{-3 i a}}{16}-\frac {3 \pi \,\mathrm {csgn}\left (b \,x^{2}\right ) {\mathrm e}^{-i a}}{16}+\frac {3 \,{\mathrm e}^{-i a} \sinIntegral \left (b \,x^{2}\right )}{8}-\frac {3 i {\mathrm e}^{-i a} \expIntegral \left (1, -i x^{2} b \right )}{16}+\frac {3 i {\mathrm e}^{i a} \expIntegral \left (1, -i x^{2} b \right )}{16}\) | \(125\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.37, size = 89, normalized size = 1.62 \begin {gather*} \frac {1}{16} \, {\left (i \, {\rm Ei}\left (3 i \, b x^{2}\right ) - i \, {\rm Ei}\left (-3 i \, b x^{2}\right )\right )} \cos \left (3 \, a\right ) - \frac {3}{16} \, {\left (i \, {\rm Ei}\left (i \, b x^{2}\right ) - i \, {\rm Ei}\left (-i \, b x^{2}\right )\right )} \cos \left (a\right ) - \frac {1}{16} \, {\left ({\rm Ei}\left (3 i \, b x^{2}\right ) + {\rm Ei}\left (-3 i \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) + \frac {3}{16} \, {\left ({\rm Ei}\left (i \, b x^{2}\right ) + {\rm Ei}\left (-i \, b x^{2}\right )\right )} \sin \left (a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 63, normalized size = 1.15 \begin {gather*} -\frac {1}{16} \, {\left (\operatorname {Ci}\left (3 \, b x^{2}\right ) + \operatorname {Ci}\left (-3 \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) + \frac {3}{16} \, {\left (\operatorname {Ci}\left (b x^{2}\right ) + \operatorname {Ci}\left (-b x^{2}\right )\right )} \sin \left (a\right ) - \frac {1}{8} \, \cos \left (3 \, a\right ) \operatorname {Si}\left (3 \, b x^{2}\right ) + \frac {3}{8} \, \cos \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sin ^{3}{\left (a + b x^{2} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.87, size = 47, normalized size = 0.85 \begin {gather*} -\frac {1}{8} \, \operatorname {Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) + \frac {3}{8} \, \operatorname {Ci}\left (b x^{2}\right ) \sin \left (a\right ) + \frac {3}{8} \, \cos \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) + \frac {1}{8} \, \cos \left (3 \, a\right ) \operatorname {Si}\left (-3 \, b x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\sin \left (b\,x^2+a\right )}^3}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________